#define _CRT_SECURE_NO_WARNINGS	

#include<stdio.h>

int main()
{
    int n;
    scanf("%d", &n);
    int max = 0;
    int count = 0;
    while (n != 0)
    {
        if (n > 0)
            count++;
        else
        {
            max = (max > count) ? max : count;
            count = 0;
        }
        scanf("%d", &n);
    }
    if (max == 0)
        printf("None\n");
    else
        printf("%d", max);
    return 0;
}